﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace RPG_The_Game.Objetos
{
    class Gato : Sprite
    {

        GameWindow Window;
        animacao gato;
        public animacao _gato;
        Random rnd = new Random();

        public Gato(Texture2D textura, GameWindow Window):base (textura)
    {
        _gato = new animacao();
        _gato.qtd_quadros = 4;
        _gato.quadros_seg = 4;
        _gato.Y = 0;
        _gato.quadro_X = textura.Width / _gato.qtd_quadros;
        _gato.quadro_Y = textura.Height;
        _gato.nome = "TOM";
        destino = new Rectangle(0, 0, _gato.quadro_X, _gato.quadro_Y);

        this.window = window;
        posicao.X = rnd.Next(100, 600);
        posicao.Y = rnd.Next(100, 600);
    }
        public override void Update(GameTime gameTime)
        {
            
        }
        public void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            base.Draw(gameTime, spriteBatch, _gato);
        }
    }
}
